{extend name="layout_modal" /}
{block name="css"}
<link rel="stylesheet" href="{$statics}plugins/select2/select2.css">
<link href="{$statics}plugins/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
{/block}
{block name="script"}
<script src="{$statics}plugins/select2/select2.full.min.js"></script>
<script type="text/javascript" src="{$statics}plugins/um/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.min.js"></script>
<script type="text/javascript" src="{$statics}plugins/um/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
  var um = UM.getEditor('myEditor',{initialFrameWidth:null});
</script>
{/block}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('save_message_data')}">
      <div class="box-body">
        <div class="form-group">
            <label for="exampleInputEmail1">选择标签</label>
            <br>
            {volist name="$taglist" id="v" key="k" empty="暂无标签，请在 内容管理--标签管理 里面添加标签"}
            <input type="checkbox" name="tagid[]" value="{$v.id}" style="margin-left: 15px;" {if $k == 1}checked{/if} > {$v.tagname}
            {/volist}
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">信息内容</label>
            <textarea id="myEditor" name="content" style="width:100%;height:240px;"></textarea>
        </div>
      </div>
      <!-- /.box-body -->
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}